#include "OMSError.h"


const char* Error2String(OMS_ERROR err)
{
    switch (err)
    {
    case OMS_ERR_SUCCESS:         
        return "success";
    case OMS_ERR_FAILD:           
        return "faild";
    case OMS_ERR_INVALID_PARAM:   
        return "invalid param";
    case OMS_ERR_UNAUTHORIZED:      
        return "unauthorized";
    case OMS_ERR_SYSTEM_BUSY:       
        return "system busy";
    case OMS_ERR_NOT_EXIST:          
        return "not exist";
    case OMS_ERR_UNKNOWN:           
        return "unknown";
    }

    return "unknown"; 
}
